package com.myworld;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 *@EnableDiscoveryClient说明：
 *     激活Eureka中的DiscoveryClient实现（自动化配置，创建DiscoveryClient接口,针对
 *     Eureka客户端的EurekaDiscoveryClient实例）
 */
@EnableFeignClients //开始feignClient
@EnableDiscoveryClient
@SpringBootApplication
public class ConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerApplication.class, args);
    }
}
